﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// 旋转
/// </summary>
public class RotateSeft : MonoBehaviour {
	[Header("旋转速度")]
	public float speed = 90;

	// Update is called once per frame
	void Update () {
		//负号 顺时针旋转   否则是逆时针
		transform.Rotate(new Vector3(0,0,-speed*Time.deltaTime));
	}
}
